<%-- 
    Document   : header
    Created on : Apr 15, 2013, 11:30:04 PM
    Author     : Lord Makuta
--%>
<div id="header">
    <a id="title" href="/dataflix"><span class="actionClr">Da</span><span class="comedyClr">ta</span><span class="dramaClr">Fl</span><span class="foreignClr">ix</span></a>
    <ul>
            <li id="categories">
                    <a href="./">Categories</a>
                    <ul ${user!=null?"class='fullexp'":""}>
                            <%
                            if (session.getAttribute("user")!=null)
                            {  
                            %>  
                                 <li id="catR"><a href="category.jsp?genre=Reco">Recommended</a></li>
                          <%}%>
                          
                        <li id="catB"><a href="category.jsp?genre=Best">Best Selling</a></li>
                        <li id="catC"><a href="category.jsp?genre=Comedy">Comedy</a></li>
                        <li id="catD"><a href="category.jsp?genre=Drama">Drama</a></li>
                        <li id="catA"><a href="category.jsp?genre=Action">Action</a></li>
                        <li id="catF"><a href="category.jsp?genre=Foreign">Foreign</a></li>
                    </ul>
            </li>

            <li id="searchSlide">
                    <form action="./search.jsp" method="get">
                        <input type="submit" value="Search" />
                        <input id="searchQur" name="searchQur"/>
                    </form>
            </li>
            
            <li id="logDrop"><a href="${user!=null?"MyAccount":""}">${user!=null?"My Account":"Sign In"}</a>
                <%  if (session.getAttribute("user")==null)
                    {    
                    %>    
                        <form id="loginFrm" method="post" action="login.jsp">
                                <label>EMail Address<input id="logEM" name="email"/></label>
                                <label>Password<input id="logPS" name="password" type="password"/></label> 
                                <input id="logBtn" type="submit" value="Sign In"/>
                        </form> 
                <% } %>
            </li>	
            <li><a href=${user!=null?"./login.jsp":"./register.jsp"}>${user!=null?"Log Out":"Register"}</a></li>
            <li><a href="./support.jsp">Support</a></li>
    </ul>
</div>
